* {
  padding: 0;
  margin: 0;
}

html {
  font-size: 18px;
}

$base-red: #c83322;
$hover-red: #FB4848;
$selected-red: #FFEDED;
// @media (max-width: 1440px) {
//   html {
//     font-size: 18px;
//     /* 小于1440px时固定为18px */
//   }
// }

// /* 根据不同的分辨率调整字体大小 */
// @media (min-width: 1440px) and (max-width: 1599px) {
//   html {
//     font-size: 18px;
//   }
// }

// @media (min-width: 1600px) and (max-width: 1679px) {
//   html {
//     font-size: 20px;
//   }
// }

// @media (min-width: 1680px) and (max-width: 1791px) {
//   html {
//     font-size: 21px;
//   }
// }

// @media (min-width: 1792px) and (max-width: 1855px) {
//   html {
//     font-size: 22px;
//   }
// }

// @media (min-width: 1856px) and (max-width: 1919px) {
//   html {
//     font-size: 23px;
//   }
// }

// @media (min-width: 1920px) and (max-width: 2047px) {
//   html {
//     font-size: 24px;
//   }
// }

// @media (min-width: 2048px) and (max-width: 2559px) {
//   html {
//     font-size: 26px;
//   }
// }

// @media (min-width: 2560px) {
//   html {
//     font-size: 32px;
//   }
// }

/* 间距0字符 */
.commom_m_t_0 {
  margin-top: 0rem !important;
}

.commom_m_r_0 {
  margin-right: 0rem !important;
}

.commom_m_b_0 {
  margin-bottom: 0rem !important;
}

.commom_m_l_0 {
  margin-left: 0rem !important;
}

/* 间距半字符 */
.commom_m_t_05 {
  margin-top: 0.5rem;
}

.commom_m_r_05 {
  margin-right: 0.5rem;
}

.commom_m_b_05 {
  margin-bottom: 0.5rem;
}

.commom_m_l_05 {
  margin-left: 0.5rem;
}

/* 间距一个字符 */
.commom_m_t_1 {
  margin-top: 1rem;
}

.commom_m_r_1 {
  margin-right: 1rem;
}

.commom_m_b_1 {
  margin-bottom: 1rem;
}

.commom_m_l_1 {
  margin-left: 1rem;
}

/* 超出文本隐藏展示省略号,1行 */
.common_line_1 {
  white-space: nowrap;
  /* 禁止换行 */
  overflow: hidden;
  /* 隐藏超出内容 */
  text-overflow: ellipsis;
  /* 使用省略号表示超出内容 */
}

.common_line_2 {
  display: -webkit-box;
  /* 必须设置为 flexbox */
  -webkit-box-orient: vertical;
  /* 设置为纵向盒子模型 */
  -webkit-line-clamp: 2;
  /* 显示的最大行数 */
  overflow: hidden;
  /* 隐藏超出内容 */
  text-overflow: ellipsis;
  /* 使用省略号表示超出内容 */
}

.common_line_3 {
  display: -webkit-box;
  /* 必须设置为 flexbox */
  -webkit-box-orient: vertical;
  /* 设置为纵向盒子模型 */
  -webkit-line-clamp: 3;
  /* 显示的最大行数 */
  overflow: hidden;
  /* 隐藏超出内容 */
  text-overflow: ellipsis;
  /* 使用省略号表示超出内容 */
}

/* 主网站背景色 */
.main_container {
  width: 100%;
  height: auto;
  background: #ffffff;
  /* 设置背景图 */
  // background-image: url("../images/main-header-bg.png");
  /* 图片大小 */
  background-size: 100% 37.83rem;
  /* 防止背景图重复 */
  background-repeat: no-repeat;
  // 设置两张背景图位置
  background-position: top center;
}

/* 主网站-内容区域 */
.com_main_content {
  width: 58.44rem;
  margin: auto;
  min-height: calc(100vh - 32.44rem);
}

/* 子网站-内容区域 */
.com_sub_content {
  width: 58.44rem;
  margin: auto;
  min-height: calc(100vh - 20.45rem);
}

// 子网站背景
.sub_container {
  width: 100%;
  height: auto;
  background: #f9f9f9;
}

// 其它栏目
.column_container {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;

  .column_row8 {
    width: 38.94rem;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .column_row5 {
    width: 28.78rem;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .column_row2 {
    width: 18.56rem;
    height: auto;
    display: flex;
    flex-direction: column;
  }
}

// 栏目标题
.column_title {
  width: 100%;
  height: 1.33rem;
  margin-bottom: 0.44rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;

  .column_title_name {
    font-weight: 800;
    line-height: 1.33rem;
    font-style: normal;
    text-transform: none;
    text-indent: 0.89rem;
  }

  .column_title_more {
    font-weight: 500;
    font-size: 0.89rem;
    color: #a4a4a4;
    text-align: left;
    font-style: normal;
    text-transform: none;
  }
}

// 详情页-顶部位置导航
.common_breadcrumb {
  font-weight: bold;
  font-size: 0.89rem;
  color: #999999;
  line-height: 1.44rem;
  font-style: normal;
  text-transform: none;
}

// 详情页-内容
.common_detail_box {
  width: 100%;
  height: 100%;
}

// 详情页-标题
.common_detail_top {
  padding-top: 1.22rem;
  margin-bottom: 1.33rem;
  border-bottom: 0.11rem dashed #E6E6E6;
  margin-left: -1.33rem;
  margin-right: -1.33rem;
  padding-left: 1.33rem;
  padding-right: 1.33rem;
  display: flex;
  flex-direction: column;

  .common_detail_title {
    height: auto;
    font-weight: bold;
    font-size: 1.44rem;
    color: #333333;
    line-height: 2.22rem;
    text-align: center;
    font-style: normal;
    text-transform: none;
    margin: 0rem 5.83rem 0.67rem 5.83rem;
  }

  // 来源，日期，点击量
  .common_detail_other {
    width: 100%;
    height: 1.44rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 0.89rem;
    color: #999999;
    line-height: 1.44rem;
    font-style: normal;
    text-transform: none;
    margin-bottom: 0.78rem;
  }
}

// 分页
.list_pagination {
  width: 100%;
  height: auto;
  margin-top: 2.22rem;
  display: flex;
  align-items: center;

  .list_pagination_span {
    font-weight: 500;
    font-size: 0.78rem;
    color: #A0AEC0;
    margin-right: 0.44rem;
  }
}

.list_pagination .ant-pagination {
  display: flex;
  align-items: center;
  flex: 1;
}

.list_pagination .ant-pagination .ant-pagination-options {
  order: -1;
  /* Move size changer to the left */
  flex: 1;
}

.list_pagination .ant-pagination-item-active a {
  // background: #DF1E1E;
  background: var(--pagination-active-color);
  color: #fff;
  border-radius: 4px;
}

.list_pagination .ant-pagination-prev .ant-pagination-item-link,
.list_pagination .ant-pagination-next .ant-pagination-item-link,
.list_pagination .ant-pagination-item {
  border: none;
}


/* 基础样式 */
.scrollstyle {

  overflow-y: auto;
  /* 启用垂直滚动 */
  scrollbar-width: none;
  /* 隐藏滚动条（适用于 Firefox） */
  -ms-overflow-style: none;
  /* 隐藏滚动条（适用于 IE 和 Edge） */
}

/* 隐藏默认滚动条（适用于 WebKit 浏览器，如 Chrome 和 Safari） */
.scrollstyle::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* 悬停时显示滚动条 */
.scrollstyle:hover::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scrollstyle:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.5);
  /* 滚动条的颜色 */
  border-radius: 4px;
  /* 圆角 */
}

.scrollstyle:hover::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  /* 滑道的颜色 */
}

/* 悬停时的滚动条样式（适用于 Firefox） */
.scrollstyle:hover {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.1);
}

/* 红色系分页器 */
.com-red-pagination .ant-pagination-item:hover {
  border-color: $base-red !important;
}

.com-red-pagination .ant-pagination-item:hover a {
  color: $base-red !important;
}

.com-red-pagination .ant-pagination-item-active {
  border-color: $base-red !important;
}

.com-red-pagination .ant-pagination-item-active a {
  color: $base-red !important;
}

.com-red-pagination .ant-pagination-prev:hover .ant-pagination-item-link {
  border-color: $base-red;
  color: $base-red;
}

.com-red-pagination .ant-pagination-prev:focus .ant-pagination-item-link {
  border-color: $base-red;
  color: $base-red;
}

.com-red-pagination .ant-pagination-next:hover .ant-pagination-item-link {
  border-color: $base-red;
  color: $base-red;
}

.com-red-pagination .ant-pagination-next:focus .ant-pagination-item-link {
  border-color: $base-red;
  color: $base-red;
}

/* 红色系tabs滑块 */
.com-red-tabs .ant-tabs-nav .ant-tabs-tab:hover {
  color: $hover-red;
}

.com-red-tabs .ant-tabs-nav .ant-tabs-tab-active {
  color: $base-red;
}

.com-red-tabs .ant-tabs-ink-bar {
  background-color: $base-red;
}

/* 红色系primary按钮 */
.com-red-primary-btn.ant-btn-primary {
  background-color: $base-red;
  border-color: $base-red;
}

.com-red-primary-btn.ant-btn-primary:hover {
  background-color: $hover-red;
  border-color: $hover-red;
}

/* 红色系默认按钮 */
.com-red-btn.ant-btn:hover {
  color: $hover-red;
  border-color: $hover-red;
}

.com-red-btn.ant-btn:focus {
  color: $base-red;
  border-color: $base-red;
}

/* 红色系a-checkbox */
.com-red-checkbox .ant-checkbox-checked .ant-checkbox-inner {
  background-color: $base-red;
  border-color: $base-red;
}

.com-red-checkbox .ant-checkbox-checked::after {
  border: 1px solid $base-red;
}

.com-red-checkbox .ant-checkbox:hover .ant-checkbox-inner {
  border-color: $base-red;
}

.com-red-checkbox .ant-checkbox-input:focus+.ant-checkbox-inner {
  border-color: $base-red;
}

/* 红色系树状图 */
.com-red-tree .ant-tree-checkbox-checked .ant-tree-checkbox-inner {
  background-color: $base-red;
  border-color: $base-red;
}

.com-red-tree .ant-tree-checkbox-checked::after {
  border: 1px solid $base-red;
}

.com-red-tree .ant-tree-checkbox:hover .ant-tree-checkbox-inner {
  border-color: $base-red;
}

.com-red-tree .ant-tree-checkbox-input:focus+.ant-tree-checkbox-inner {
  border-color: $base-red;
}

.com-red-tree.ant-tree li .ant-tree-node-content-wrapper:hover {
  background-color: $selected-red;
}

.com-red-tree.ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected {
  color: $base-red !important;
  background-color: $selected-red;
}

/* 红色系a-input-search */
.com-red-input-search .ant-btn-primary {
  background-color: $base-red;
  border-color: $base-red;
}

.com-red-input-search .ant-btn-primary:hover {
  background-color: $hover-red;
  border-color: $hover-red;
}

.com-red-input-search .ant-input:hover {
  border-color: $hover-red;
}

.com-red-input-search .ant-input:focus {
  border-color: $hover-red;
  box-shadow: 0 0 0 2px $selected-red;
}

.com-red-input-search .ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) {
  border-color: $hover-red;
}

/* 红色系a-input */
.com-red-input.ant-input:hover {
  border-color: $hover-red;
}

.com-red-input.ant-input:focus {
  border-color: $hover-red;
  box-shadow: 0 0 0 2px $selected-red;
}

.com-red-input.ant-input-affix-wrapper:hover .ant-input:not(.ant-input-disabled) {
  border-color: $hover-red;
}

// 下拉红色主题
.com-red-parent .ant-select-focused .ant-select-selection,
.com-red-select .ant-select-selection:focus,
.com-red-select .ant-select-selection:active,
.com-red-select .ant-select-selection:hover {
  border-color: $hover-red !important;
  box-shadow: 0 0 0 2px $selected-red !important;
}

/* 当 .com-red-select-option 存在并且是 hover 状态时 */
.com-red-select-option:hover:not(.ant-select-dropdown-menu-item-disabled) {
  background-color: $selected-red;
}

/* 当 .com-red-select-option 存在并且是激活状态时 */
.ant-select-dropdown-menu-item-active.com-red-select-option:not(.ant-select-dropdown-menu-item-disabled) {
  background-color: $selected-red;
}
// 红色单选
.com-red-radio .ant-radio-checked .ant-radio-inner,
.com-red-radio .ant-radio:hover .ant-radio-inner{
  border-color: $base-red;
}
.com-red-radio .ant-radio-inner::after{
  background-color: $base-red;
}
// 红色背景图
.containerRed {
  background-image: url('../images/bgItemRed.png') !important;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

// element树形红色样式
.com-element-tree.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  color: $base-red !important;
  background: $selected-red !important;
}

.com-element-tree .el-tree-node:focus>.el-tree-node__content {
  color: $base-red !important;
  background: $selected-red !important;
}

// 红色字体hover
.hoverBlue:hover {
  color: rgb(21, 114, 244);
}

.hoverRed:hover {
  color: $hover-red !important;
}

// 红色背景
.bg-red {
  background: $base-red !important;
}
